package com.yichuang.security.common;

/**
 * <p> 路由网关放开权限的url </p>
 *
 * @author tuonioooo
 * @site https://miliqkdoc.motopa.cn/
 * @date 2019-06-28 17:27
 */
public class IgnoreUrl {
    public static final String[] URLS = new String[]{
            //整理结构之前的接口
            "/product/**",
            "/order/**",
            "/oauth2/getToken",
            "/oauth/token",
            "/oauth2/refreshToken",
            "/favicon.ico"
    };

    public static String[] antMatchers() {
        String[] result = new String[URLS.length];
        for (int index = 0; index < URLS.length; index++) {
            result[index] = URLS[index] + "/**";
        }
        return result;
    }
}
